Function |locate
std/secret::|locate
Usage
|locate<T>(locator, name, transmission, plain_reveal)
Generics
◻ T (any)
Parameters
↳ locator: string
↳ name: string
↳ transmission: string
↳ plain_reveal: bool
Return
↴ Option<Secret<T>>
Secret resolved from locator when revealed, with an explicit policy.
locator:<scheme>:<path>, such asenv:MELODIUM_SECRET_NAME,file:PATH, or a scheme registered by a source model.transmission: where the secret may go when the program is distributed,local(never leaves this engine),reference(only the locator is sent), orvalue(the value is sent).plain_reveal: whether the plainrevealtreatment may reveal it, never forenv:andfile:secrets.
Gives none if locator or transmission are not valid.